package com.vehicle.mapper;

import com.vehicle.pojo.Permission;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PermissionMapper {
    //分布查询Permission集合rid
    public List<Permission> selectPermissionsWithStep(Integer rid);

    //根据权限id查询权限
    public  Permission selcetPermissionsById(@Param("pid") Integer pid);
    //根据uid查询所有权限
    public  List<Permission> selectPermissionsByUid(@Param("uid") Integer uid);

    //分页查询权限
    public List<Permission>  selectPermissionByPage(Permission permission);

    //查询所有权限
    public List<Permission>  selectPs();
}
